package com.ocom.webapi.feign;

import com.ocom.common.constant.AiotUrl;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;


@FeignClient(value = "devicehttp")
public interface DeviceHttpClientService {

    // 3.2.SaaS平台激活(禁用)设备(SetDeviceStatusBySaas)
    @PostMapping(AiotUrl.Url_SetDeviceActBySaas)
    public Result SetDeviceActBySaas(@RequestBody Map<String,Object> map);

    /*
     * @Description: SaaS平台注销设备
     * @Author: lu
     * @Date: 2022/3/28 9:37
     * @param setDeviceStatusBySaasVo:
     * @return: com.ocom.common.resp.Result
     **/
    @PostMapping(AiotUrl.Url_SetDeviceUnActBySaas)
    public Result SetDeviceUnActBySaas(@RequestBody Map<String,Object> map);
}
